<?php
class OrdersEmployee extends AppModel {
	var $name = 'OrdersEmployee';
	var $displayField = 'id';
	var $validate = array(
		'orders_id' => array(
			'rule' => 'notempty',
        	'message' => 'This field cannot be left blank'
		),
		'employee_id' => array(
			'rule' => 'notempty',
        	'message' => 'This field cannot be left blank'
		)
	);	
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Orders' => array(
			'className' => 'Orders',
			'foreignKey' => 'orders_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Employee' => array(
			'className' => 'Employee',
			'foreignKey' => 'employee_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
?>